package com.css.dzj.zfjg.modules.taskinfo.service;

import com.css.dzj.zfjg.modules.fb.entity.JgFbLhjgEntity;
import com.css.dzj.zfjg.modules.taskinfo.entity.JgLhjgRwsEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;

/**
 * 联合监管任务书Service
 */
public interface TaskInfoService {

    /**
     * 添加任务书
     * @param jgLhjgRwsEntity
     */
    void add(JgLhjgRwsEntity jgLhjgRwsEntity, HttpServletRequest request);

    /**
     * 修改任务书
     * @param jgLhjgRwsEntity
     */
    void update(JgLhjgRwsEntity jgLhjgRwsEntity);

    /**
     * 通过id查找任务书
     * @param id
     * @return
     */
    JgLhjgRwsEntity findById(String id);

    /**
     * 分页查询所有任务书
     * @return
     */
    QueryResults<JgLhjgRwsEntity> queryAll(Pageable pageable);

    /**
     * 多条件分页查询任务书
     * @param pageable
     * @return
     */
    QueryResults<JgLhjgRwsEntity> listTaskInfo(Pageable pageable, String taskName, String superviseObjectType, String superviseObjectName, String taskStartTimeStart, String taskStartTimeEnd, String status);


    /**
     * 删除任务书
     * @param jgLhjgRwsEntity
     */
    void delete(JgLhjgRwsEntity jgLhjgRwsEntity);
    /**
     * 分发任务书
     * @param jgFbLhjgEntity
     */
    void fenfa(JgFbLhjgEntity jgFbLhjgEntity, HttpServletRequest request);
}
